#include "CommandLineHelper.h"

bool
ContainCommandlineKey (int argc, char **argv, std::string key)
  {
  for (int i=0; i<argc; i++)
    {
    std::string arg (argv[i]);
    int pos = arg.find (key);

    if (pos == std::string::npos)
      {
      continue;
      }

    return true;
    }
  return false;
  }

bool
FindCommandlineKey (int argc, char **argv, std::string key)
  {
  for (int i=0; i<argc; i++)
    {
    std::string arg (argv[i]);
    int pos = arg.compare (key);

    if (pos != 0)
      {
      continue;
      }

    return true;
    }
  return false;
  }
